/**
 * 
 * @author Hyuksoo Seo
 * created Oct 15, 2008
 * copyright 2008 by hs2393@columbia.edu
 */
package edu.columbia.ubms.ejb;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name="bookmark")
/*
@SequenceGenerator(name = "mainpage_sequence", sequenceName = "mainpage_id_seq")
@TableGenerator(  name="bmainpage_id", table="primary_keys", pkColumnName="key", pkColumnValue="mainpage",
                valueColumnName="value")
*/                 
public class BookmarkEntityBean implements Serializable {
     /**
	 * 
	 */
	
	private static final long serialVersionUID = 4L;

	private int bookmarkId;
	private int userId;
	private String bookmarkName;
	private String bookmarkUrl;
	private String bookmarkDescription;
	private String bookmarkTag;
	private char bookmarkShare;

	public BookmarkEntityBean() {
		super();
	};
	
	public BookmarkEntityBean(int userId, String bookmarkName, String bookmarkUrl,
			String bookmarkDescription, String bookmarkTag, char bookmarkShare) {
		super();
		this.userId = userId;
		this.bookmarkName = bookmarkName;
		this.bookmarkUrl = bookmarkUrl;
		this.bookmarkDescription = bookmarkDescription;
		this.bookmarkTag = bookmarkTag;
		this.bookmarkShare = bookmarkShare;
	}

	@Override
	public String toString() {

			return "Bookmark : " + getBookmarkId() + " BookmarkName " + getBookmarkName() + " BookmarkURL "
							+ getBookmarkUrl() + " BookmarkDescription " + getBookmarkDescription()
							 + " BookmarkTag " + getBookmarkTag() + " BookmarkShare " + getBookmarkShare();
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public int getBookmarkId() {
		return bookmarkId;
	}

	public void setBookmarkId(int bookmarkId) {
		this.bookmarkId = bookmarkId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getBookmarkName() {
		return bookmarkName;
	}

	public void setBookmarkName(String bookmarkName) {
		this.bookmarkName = bookmarkName;
	}

	public String getBookmarkUrl() {
		return bookmarkUrl;
	}

	public void setBookmarkUrl(String bookmarkUrl) {
		this.bookmarkUrl = bookmarkUrl;
	}

	public String getBookmarkDescription() {
		return bookmarkDescription;
	}

	public void setBookmarkDescription(String bookmarkDescription) {
		this.bookmarkDescription = bookmarkDescription;
	}

	public String getBookmarkTag() {
		return bookmarkTag;
	}

	public void setBookmarkTag(String bookmarkTag) {
		this.bookmarkTag = bookmarkTag;
	}

	public char getBookmarkShare() {
		return bookmarkShare;
	}

	public void setBookmarkShare(char bookmarkShare) {
		this.bookmarkShare = bookmarkShare;
	}
}
